/**
* @project admin-go-api
* @name sysOperationLogMiddleware
* @descriptions 操作日志中间件
* @author 寒锋
* @date 2023-12-22 16:24:44
 */

package middleware

import (
	"admin-go-api/api/service"
	"github.com/gin-gonic/gin"
)

func SysOperationLogMiddleware() gin.HandlerFunc {
	return func(c *gin.Context) {
		c.Next()
		service.SysOperationLogService().CreateSysOperationLog(c)
	}
}
